-- 格式要UTF8-BOM
local TWaryLua = require "TWaryLua";
local initData = require "1"
local all_info = require "lua.all_info"
local genpwd = require "lua.GenPassword"
local json = require "json"; 


-- 修改密码和重启



local content = "ModifyPassword.exe"
    .. " cn-hongkong"
    .. " " .. initData.ecs_accesskey_id 
    .. " " .. initData.ecs_accesskey_secret
    .. " " .. genpwd.server_pass

    .. "\n" .. "ModifyPassword.exe"    
    .. " cn-shenzhen"
    .. " " .. initData.ecs_accesskey_id 
    .. " " .. initData.ecs_accesskey_secret
    .. " " .. genpwd.server_pass

local file = TWaryLua.SaveToFile("./exe/ModifyPassword.bat", content)
print(content)
print("正在写入文件 ./exe/ModifyPassword.bat")